<?php

namespace App\Http\Requests;

class UpdateStatusRequest extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     * @return string[]
     */
    public function rules(): array
    {
        return [
            'status' => ['required','in:0,1']
        ];
    }

    public function messages(): array
    {
        return [
            'status.required' => '用户状态不能为空',
            'status.in' => '用户状态不合法',
        ];
    }
}

